package org.homeworkadmin.admin.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.homeworkadmin.admin.domain.Post;

/**
 * 帖子管理Mapper接口
 *
 * @author ruoyi
 * @date 2024-11-12
 */
@Mapper
public interface PostMapper
{
    int getPostCount(@Param("postTitle") String postTitle);

    List<Post> getPost(@Param("postTitle") String postTitle,
                       @Param("pagesize") int pagesize,@Param("currpage") int currpage);
    int check(@Param("postId") int postId,@Param("status") String status);
}
